package edu.xidian.bdilab.jrbigdata.controller.admin;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.admin.enterpriseadmin.enterpriseadminService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@Api(tags = {"enterpriseManage-企业信息管理"})
public class EnterpriseManageController {

    @Autowired
    enterpriseadminService enterpriseadminService;

    @RequestMapping(value = "admin/enterpriseManage/check", method = RequestMethod.POST)
    public ResponseResult bankManage_check() throws Exception
    {
        ResponseResult responseResult=enterpriseadminService.enterpriseManage_check();
        return responseResult;
    }
    @RequestMapping(value = "admin/enterpriseManage/delete", method = RequestMethod.POST)
    public ResponseResult  bankManage_delete(@RequestParam @ApiParam(value = "企业用户名") String userName)throws Exception
    {

        ResponseResult responseResult=enterpriseadminService.enterpriseManage_delete(userName);
        return responseResult;
    }
}
